package edu.hunan.cxb18.controller;

import edu.hunan.cxb18.mapper.UserMapper;
import edu.hunan.cxb18.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author AuthorName
 * @create 2020-04-22 9:39
 */
@RestController
public class TestController {
    @Autowired
    private UserMapper userMapper;
    @GetMapping("/test")
    public User test(){
      return userMapper.selectByPrimaryKey(1);
    }
}
